<template>
  <Spin :spinning="loading" tip="Loading...">
    <div class="claim_query_factory">
      <!-- table -->
      <BreakSpace label="工单及车辆信息" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanel1" :list="formList" :cols="4" :formType="'add'" labelWidth="110" :isSubmitBtn="false" @formChange="formChangeHandle" />

          <Drawer :visible.sync="yushouquan" :title="'预授权详细'" destroyOnClose :containerStyle="{height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px'}">
            <yushouquan  :type="actions.type" :row="formData1" @close="yushouquanClose" @save="yushouquanSave" :rowData="rowData1" ></yushouquan>
         </Drawer>
      <!--    <BaseDialog :visible.sync="jiuyuandanhao" :title="'救援单号选择'" destroyOnClose :containerStyle="{height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px'}">-->
      <!--      <jiuyuandanhao @close="jiuyuandanhaoClose" @save="jiuyuandanhaoSave"></jiuyuandanhao>-->
      <!--    </BaseDialog>-->
      <Drawer :visible.sync="actions.visible" :title="actions.title" width="70%" destroyOnClose :containerStyle="{ height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px' }">
        <addDialog :type="actions.type" :row="formData" @close="close" />
      </Drawer>
      <BaseDialog :visible.sync="isvideo" :title="'视频预览'" destroyOnClose :containerStyle="{ height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px' }">
        <videos @close="dealercloseHandler" :src="src" />
      </BaseDialog>
      <BaseDialog :visible.sync="remarkFlag" :title="'审核备注选择'" destroyOnClose :containerStyle="{ height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px' }">
        <selectDelearPage @close="weixiugongdanClose" @save="weixiugongdanSave"></selectDelearPage>
      </BaseDialog>
      <BaseDialog :visible.sync="responsibleAdd" :title="'责任商选择'" width="850px" destroyOnClose :containerStyle="{height: 'calc(100% - 60px)', overflow: 'auto', paddingBottom: '60px'}">
        <ResponsibleList @close="responsibleClose" @save="responsibleSave" :rowDate="rowDate"></ResponsibleList>
      </BaseDialog>
      <BaseDialog :title="'上传附件'" :visible.sync="upVisible" destroyOnClose>
        <uploadFile :rowData="uploadDate" @close="upVisible = false" @save="saveFile"></uploadFile>
      </BaseDialog>
      <BreakSpace label="索赔信息" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanel2" :list="formList1" :cols="4" :formType="'add'" labelWidth="130" :isSubmitBtn="false" @formChange="formChangeHandleSp" />
      <BreakSpace label="上传视频/压缩文件" :containerStyle="{ marginBottom: '10px' }" />
      <!--    <UploadFile action-url="/api/file/oss/upload" :initial-value="form.fileList" :fileTypes="['mp4','avi','rmvb','WMV']" :fileSize="100" :isOnlyButton="true"  :limit="10000" @change="successHandler">上传附件</UploadFile>-->
      <FilterTable
        ref="fileTable"
        :columns="columnsFile"
        columnsRef="whbydUploadFile"
        :isSelectColumn="false"
        :onColumnsChange="columnsFile => (this.columnsFile = columnsFile)"
        height="auto"
        :dataSource="list"
      />
      <BreakSpace label="维修项目列表" :containerStyle="{ marginBottom: '10px' }" />
      <FilterTable
        ref="table"
        :columns="columns"
        :params="fetchParams"
        :dataSource="dataList"
        :datakey="'items'"
        :onColumnsChange="columns => (this.columns = columns)"
        :onRowSelectChange="selectChange"
        selectionType="single"
        :is-select-column="false"
        :isPagination="false"
        height="auto"
      >
        <!-- 维修项目列表新增 -->
        <!--      <template slot="controls" slot-scope="props">-->
        <!--        <multiuse-button size="small" type="primary" icon="el-icon-plus" @click="weixiuxiangmulistadd()">添加</multiuse-button>-->
        <!--      </template>-->
      </FilterTable>
      <div style="margin-bottom: 1rem;"></div>
      <BreakSpace label="备件换上件列表" :containerStyle="{ marginBottom: '10px' }" />
      <FilterTable
        ref="table1"
        :columns="columns1"
        :params="fetchParams"
        :dataSource="dataList1"
        :datakey="'items'"
        :onColumnsChange="columns => (this.columns = columns)"
        :onRowSelectChange="selectChange"
        selectionType="single"
        :is-select-column="false"
        :isPagination="false"
        height="auto"
      >
        <!--      <template slot="controls" slot-scope="props">-->
        <!--        <multiuse-button size="small" type="primary" icon="el-icon-plus" @click="peijianhuanshangjianadd()">添加</multiuse-button>-->
        <!--      </template>-->
      </FilterTable>
      <BreakSpace label="旧件列表" :containerStyle="{ marginBottom: '10px' }" />
      <FilterTable
        ref="table2"
        :columns="columnshuanxiajian"
        :params="fetchParams"
        :dataSource="huanxiajiandataList"
        :datakey="'items'"
        :onColumnsChange="columns => (this.columns = columns)"
        :onRowSelectChange="selectChange"
        selectionType="single"
        :is-select-column="false"
        :isPagination="false"
        height="auto"
      >
        <!--      <template slot="controls" slot-scope="props">-->
        <!--        <multiuse-button size="small" type="primary" icon="el-icon-plus" @click="peijianhuanxiajianadd()">添加</multiuse-button>-->
        <!--      </template>-->
      </FilterTable>

      <BreakSpace label="附加项目列表" :containerStyle="{ marginBottom: '10px' }" />
      <FilterTable
        ref="table3"
        :columns="columnsfujiaxiangmu"
        :params="fetchParams"
        :dataSource="fujiaxiangmudataList"
        :datakey="'items'"
        :onColumnsChange="columns => (this.columns = columns)"
        :onRowSelectChange="selectChange"
        selectionType="single"
        :is-select-column="false"
        :isPagination="false"
        height="auto"
      >
        <!--      <template slot="controls" slot-scope="props">-->
        <!--        <multiuse-button size="small" type="primary" icon="el-icon-plus" @click="fujiaxiangmuadd()">添加</multiuse-button>-->
        <!--      </template>-->
      </FilterTable>
      <BreakSpace label="外出救援信息" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanelOut" :list="outformList" :cols="4" :formType="'add'" labelWidth="110" @formChange="formChangeHandleOut" :isSubmitBtn="false" />
      <BreakSpace label="外出救援费用" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanelOutAmount" :list="outAmountformList" :cols="4" :formType="'add'" labelWidth="110" @formChange="formChangeHandleOutAmount" :isSubmitBtn="false" />

      <BreakSpace label="费用信息" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanel3" :list="feiyongformList" :cols="4" :formType="'add'" labelWidth="110" @formChange="formChangeHandle2" :isSubmitBtn="false" />
<!--      <BreakSpace label="审核费用信息" :containerStyle="{ marginBottom: '10px' }" />-->
<!--      <FormPanel ref="formPanel4" :list="shenhefeiyongformList" :cols="4" :formType="'add'" labelWidth="110" :isSubmitBtn="false" />-->
      <LazyLoadTab v-model="activeName" :tabMenus="menus" :destroyOnClose="true"></LazyLoadTab>
      <BreakSpace label="审核备注" :containerStyle="{ marginBottom: '10px' }" />
      <FormPanel ref="formPanelbeizhu" :list="formListbeizhu" :cols="1" :formType="'add'" labelWidth="200" :isSubmitBtn="false" @formChange="formChangeHandle4" />
      <div style="padding-top: 3rem;"></div>
      <div
        :style="{
          position: 'fixed',
          left: 0,
          bottom: 0,
          right: 0,
          zIndex: 9,
          borderTop: '1px solid #e9e9e9',
          padding: '10px 20px',
          background: '#fff',
          textAlign: 'right'
        }"
      >
        <!--      <multiuse-button @click="closeDialog">作废</multiuse-button>-->
        <!--      <multiuse-button type="primary" @click="saveDialog">保存</multiuse-button>-->
        <multiuse-button :click="submit.bind()" v-show="isDetailed" :disabled="this.claimStatus == 55131001 || this.claimStatus == 55131002 || this.claimStatus == 55131006 || this.rowData.backStatusStr == '已回运'"
          >撤销审核</multiuse-button
        >
        <multiuse-button type="primary" @click="closeDialog">关 闭</multiuse-button>
      </div>
    </div>
  </Spin>
</template>
<script>

import yushouquan from './yushouquan.vue';
import { getResultList } from '@/api/repair/repairBusiness/rescueService/index';
import addDialog from '@/pages/claimDemage/BasicData/ClaimApplication/addDialog.vue';
import {  getAppId } from '@/assets/js/auth';
import { quySP, editSave, zuofeiFun } from '@/api/claim/factory/ClaimQueryFactory/index';
import { isFormEmpty } from '@/utils/index';
import { cmsClaimTypeStr } from '@/api/claim/dealer/ClaimApplication/index';
import moment from 'moment';
import selectDelearPage from '../ClaimCheck/selectDelearPage';
import videos from '@/pages/claimDemage/BasicData/AuthApplication/videos.vue';
import uploadFile from '../ClaimQueryDealer/uploadFile';
import { dictionary } from '@/utils/dictMixin';
import {getListByPage} from '@/api/claim/factory/AuthQueryFactory';
import ResponsibleList from '@/pages/claimDemage/tools/ResponsibleList.vue';
import {findFileByUrl} from '@/api/partsmanage/financialManagement/capitalAccount/index';
import { getRescueList } from '@/api/customerRepair/rescueManagement/rescueOrder';
import { getVehicleByVin } from '@/api/claim/dealer/AuthApplication';

export default {
  props: ['type', 'rowData','vin','isDetailed'],
  mixins: [dictionary],
  components: {
    yushouquan,
    selectDelearPage,
    addDialog,
    videos,
    uploadFile,
    ResponsibleList
  },
  data() {
    return {
      rowData1: {},
      uploadDate: {},
      upVisible: false,
      form: {
        fileList: []
      },
      src: null,
      list: [],
      isvideo: false,
      syncList: [],
      columnsFile: this.createdTable(),
      actions: { type: 'add', title: '', visible: false, data: null },
      formData: {},
      formData1: {},
      rowDate: {},
      loading: false,
      fileList: [],
      dataList: [],
      dataList1: [],
      selects: [],
      huanxiajiandataList: [],
      fujiaxiangmudataList: [],
      visible: false,
      visibleDrawer: false,
      peijianhuanxiajianlistaddflag: false,
      fujiaxiangmuCloselistaddflag: false,
      weixiuxiangmulistaddflag: false,
      peijianhuanshangjianlistaddflag: false,
      Peijianhuanxiajianlistaddflag: false,
      fujiaxiangmulistaddflag: false,
      outformList: this.outformListFn(),
      outAmountformList: this.outAmountformListFn(),
      collapse: false,
      zifeigongdan: false,
      weixiugongdan: false,
      guzhangyuanyin: false,
      zhusunjian: false,
      guzhangxianxiangdaima: false,
      responsibleAdd: false,
      infoId: null,
      // topFilterInit: this.topFilterInitFun(),
      flterValue: {}, //参数
      columns: this.creatHeader(),
      columns1: this.creatHeader1(),
      columnshuanxiajian: this.columnshuanxiajianFn(),
      columnsfujiaxiangmu: this.columnsfujiaxiangmuFn(),
      // shenhefeiyongformList: this.shenhefeiyongformListFn(),
      formListbeizhu: this.formListbeizhuform(),
      // fetchApi: getUser,
      fetchParams: {}, //ipa 接口
      selectedRows: [], //选中经销商
      formList: this.createFormList(),
      formList1: this.formList1Fn(),
      feiyongformList: this.feiyongformListFn(),
      saveData3: null,
      saveData1: null,
      saveData4: null,
      responsibleCode:null,
      responsiblePerson:null,
      responsibleId:null,
      saveData: {}, //保存对象
      activeName: '审核记录',
      yushouquan: false,
      jiuyuandanhao: false,
      sumfujiafeiyong: 0,
      sumfujiafeiyongz: 0,
      sumweixiufeiyongz: 0,
      partAmountsumz: 0,
      sumLabourSum: 0,
      partAmountsum: 0,
      sumPeiJianFeiYong: 0,
      sumAmountsum: 0,
      saveFlag: 0,
      outId:null,
      id: '',
      remarkFlag: false,
      radioIndex:0,
      radioPartIndex:0,
      menus: [
        {
          title: '审核记录',
          path: 'claimDemage/BasicData/ClaimCheck/jiluandlishi/shenhejilu',
          params: {
            type: 1,
            claimId: this.rowData.claimId
          }
        },
        {
          title: '维修历史',
          path: 'claimDemage/BasicData/ClaimCheck/jiluandlishi/weixiulishi',
          // disabled: true,
          params: {
            type: 2
          }
        },
        {
          title: '索赔历史',
          path: 'claimDemage/BasicData/ClaimCheck/jiluandlishi/suopeilishi',
          // disabled: true,
          params: {
            type: 3,
            roNo: ''
          }
        },
        {
          title: 'PDI检查单',
          path: 'claimDemage/BasicData/ClaimCheck/jiluandlishi/pdi',
          // disabled: true,
          params: {
            type: 4
          }
        },
        {
          title: '回访记录',
          path: 'claimDemage/BasicData/ClaimCheck/jiluandlishi/visit',
          // disabled: true,
          params: {
            type: 5
          }
        }
      ],
      claimStatus: null
    };
  },
  async created() {
    this.loading = true;
    console.log(this.rowData);
    if(getAppId()=='arcfox'){
    this.formList1.find(x => x.fieldName == 'ifTrailer').hidden = true
    this.columnshuanxiajian.find(x => x.dataIndex == 'partCodeBefore').hidden = true
    this.columnshuanxiajian.find(x => x.dataIndex == 'partNameBefore').hidden = true

    }
    await this.chuqi();
    await this.getAuthListByauthNo(this.rowData.claimId);
    await this.getVehicleByVin(this.rowData.vin,this.rowData.ownerCode);
    if (this.rowData.outId) {
      this.loading = true;
      await this.getOutInfo(this.rowData.outId);
      this.loading = false;
    }
    this.loading = false;
  },
  methods: {
    dealercloseHandler() {
      this.isvideo = false;
    },
    // 上传成功回调
    successHandler(val) {
      let json = JSON.parse(JSON.stringify(val));
      let data = {};
      data.createdAt = moment().format('YYYY-MM-DD HH:mm:ss');
      data.title = json[json.length - 1].name;
      data.fileUrl = json[json.length - 1].url;
      this.$refs.fileTable.$refs.pageTable.EXECUTE_INSERT(data);
    },
    // 获取服务端文件 to blob
    async downLoadByUrl(url, params = {}) {
      let res = await findFileByUrl(url);
      console.log(res.data)
      return res.data;
    },
    // 执行下载动作
    async downloadFile(url) {
      console.log(url)
      url = encodeURIComponent(url);
      const data = await this.downLoadByUrl(url);
      console.log('downloadUrl=====', data)
      let a = document.createElement('a');
      a.href = data;
      a.target = '_blank';
      a.click();
      a = null;
    },
    video(val) {
      this.isvideo = true;
      this.src = val.fileUrl;
    },
    delVideo(val) {
      console.log('#@!#!', val);
      this.$refs.fileTable.$refs.pageTable.EXECUTE_DELETE([val]);
    },
    formChangeHandle4(val) {
      console.log(val);
      this.saveData5 = val;
    },

    async getAuthListByauthNo(id) {
      let res = await quySP({ id: id });
      let data = res.data;
      //临时属性
      this.partId = data.partId; //主损件id
      this.supId = data.supId; //供应商ID
      this.supCode = data.supCode; //供应商Code
      this.faultAppear = data.faultAppear; //故障现象
      this.labourAmount = data.labourAmount; //工时费用
      this.partAmount = data.partAmount; //备件费用
      this.seriesId = data.seriesId; //车系id
      this.seriesCode = data.seriesCode; //车系Code
      this.modelId = data.modelId; //车型id
      this.modelCode = data.modelCode; //车型Code
      this.faId = data.faId; //故障现象主键
      this.isDeleted = data.isDeleted;
      this.addAmount = data.addAmount;
      this.sumfujiafeiyongz = data.addAmount;
      this.sumweixiufeiyongz = data.labourAmount;
      this.partAmountsumz = data.partAmount;
      this.createdAt = data.createdAt;
      this.createdBy = data.createdBy;
      this.applyAt = data.applyAt;
      this.applyBy = data.applyBy;
      this.claimNo = data.claimNo;
      this.claimStatus = data.claimStatus;
      this.ownerCode = data.ownerCode;
      this.appId = data.appId;
      this.orgId = data.orgId;
      this.ownerParCode = data.ownerParCode;
      this.submitAt = data.submitAt;
      this.submitBy = data.submitBy;
      this.authNo = data.authNo;
      console.log(data.outId);
      this.outId = data.outId;
      this.outCode = data.outCode;
      this.outNo = data.outNo;
      this.menus[2].params.roNo = data.vin;
      this.menus[1].params.vin = data.vin;
      this.menus[3].params.vin = data.vin;
      this.menus[3].params.ownerCode = data.ownerCode;
      this.menus[4].params.claimNo = data.claimNo;
      this.frId = data.frId; //故障原因主键
      this.claimId = data.claimId;
      this.reportId = data.reportId;
      this.rowDate.serviceBeginDate = data.serviceBeginDate;
      this.rowDate.saleDate = data.saleDate;
      this.rowDate.balanceTime = data.balanceTime;
      if (data.saleDate) {
        data.saleDate = moment(data.saleDate).format('YYYY-MM-DD');
      }
      if (data.prodDate) {
        data.prodDate = moment(data.prodDate).format('YYYY-MM-DD');
      }
      if (data.repairBeginDate) {
        data.repairBeginDate = moment(data.repairBeginDate).format('YYYY-MM-DD');
      }
      //为2个form赋值
      for (let i in data) {
        this.formList.map(y => {
          if (i == y.fieldName) {
            y.initialValue = data[i];
          }
        });
        this.formList1.map(y => {
          if (i == y.fieldName) {
            y.initialValue = data[i];
          }
          if (y.initialValue == 55101003||y.initialValue == 55101004) {
            this.formList1.map(y => {
              if (y.fieldName == 'selfNo') {
                y.hidden = false;
                y.initialValue = data.selfNo;
              }
              if (y.fieldName == 'selfSdate') {
                y.hidden = false;
                y.initialValue = data.selfSdate;
              }
              if (y.fieldName == 'selfUseMile') {
                y.hidden = false;
                y.initialValue = data.selfUseMile;
              }
              if (y.fieldName == 'selfUseHours') {
                y.hidden = false;
                y.initialValue = data.selfUseHours;
              }
              if (y.fieldName == 'selfMile') {
                y.hidden = false;
                y.initialValue = data.selfMile;
              }
            });
          }
        });
        this.feiyongformList.map(y => {
          if (i == y.fieldName) {
            data[i]=data[i]==null?0:data[i];
            y.initialValue =parseFloat(data[i]).toFixed(2);;
          }
        });
        // this.shenhefeiyongformList.map(y => {
        //   if (i == y.fieldName) {
        //     y.initialValue = data[i];
        //   }
        // });
      }
      for (let i in data.fileList) {
        if (data.fileList[i].type == 55141001) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            console.log('fileUrl=====', fileUrl)
            this.formList1.find(x => x.fieldName == 'wayPicture').initialValue = [fileUrl];
          }
        } else if (data.fileList[i].type == 55141002) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            this.formList1.find(x => x.fieldName == 'wayPicture1').initialValue = [fileUrl];
          }
        } else if (data.fileList[i].type == 55141003) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            this.formList1.find(x => x.fieldName == 'wayPicture2').initialValue = [fileUrl];
          }
        } else if (data.fileList[i].type == 55141004) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            this.formList1.find(x => x.fieldName == 'wayPicture3').initialValue = [fileUrl];
          }
        } else if (data.fileList[i].type == 55141005) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            this.formList1.find(x => x.fieldName == 'wayPicture4').initialValue = [fileUrl];
          }
        } else if (data.fileList[i].type == 55141006) {
          if (data.fileList[i].fileUrl) {
            let fileUrl = await this.downLoadByUrl(data.fileList[i].fileUrl);
            this.formList1.find(x => x.fieldName == 'wayPicture5').initialValue = [fileUrl];
          }
        }
      }
      //为table赋值
      let newFile = [];
      for (let i in data.fileList) {
        if (data.fileList[i].type == null) {
          newFile.push(res.data.fileList[i]);
        }
      }
      this.$refs.fileTable.$refs.pageTable.EXECUTE_INSERT(newFile);
      if (200 == res.resultCode) {
        let data = res.data;
        if (isFormEmpty(data)) {
          data = {};
        }
        let records = data.labourList;
        if (isFormEmpty(records)) {
          records = [];
        }else{
          // records.forEach(x => {
          //   x.cmsClaimPrice= parseFloat(x.cmsClaimPrice).toFixed(2);
          //   x.cmsClaimAmount= parseFloat(x.cmsClaimAmount).toFixed(2);
          // });
          for(let i=0;i<records.length;i++){
            if(10041001==records[i].isMain){
              this.radioIndex=i;
            }
            records[i].cmsClaimPrice=isFormEmpty(records[i].cmsClaimPrice)?0:records[i].cmsClaimPrice;
            records[i].cmsClaimAmount=isFormEmpty(records[i].cmsClaimAmount)?0:records[i].cmsClaimAmount;
            records[i].cmsClaimPrice= parseFloat(records[i].cmsClaimPrice).toFixed(2);
            records[i].cmsClaimAmount= parseFloat(records[i].cmsClaimAmount).toFixed(2);
          }
        }
        this.$refs.table.$refs.pageTable.EXECUTE_INSERT(records);
        let records1 = data.addList;
        if (isFormEmpty(records1)) {
          records1 = [];
        }else{
          records1.forEach(x => {
            x.addAmount= parseFloat(x.addAmount).toFixed(2);
          });
        }
        this.$refs.table3.$refs.pageTable.EXECUTE_INSERT(records1);
      }
      let records2 = data.partList;
      if (isFormEmpty(records2)) {
        records2 = [];
      }else{
        for(let i=0;i<records2.length;i++){
          if(10041001==records2[i].isMain){
            this.radioPartIndex=i;
          }
          records2[i].cmsClaimPrice=isFormEmpty(records2[i].cmsClaimPrice)?0:records2[i].cmsClaimPrice;
          records2[i].cmsClaimAmount=isFormEmpty(records2[i].cmsClaimAmount)?0:records2[i].cmsClaimAmount;
          records2[i].cmsClaimPrice= parseFloat(records2[i].cmsClaimPrice).toFixed(2);
          records2[i].cmsClaimAmount= parseFloat(records2[i].cmsClaimAmount).toFixed(2);
        }
      }
      this.$refs.table2.$refs.pageTable.EXECUTE_INSERT(records2);

      let records3 = data.partRpList;
      if (isFormEmpty(records3)) {
        records3 = [];
      }else{
        records3.forEach(x => {
          x.cmsClaimPrice= parseFloat(x.cmsClaimPrice).toFixed(2);
          x.cmsClaimAmount= parseFloat(x.cmsClaimAmount).toFixed(2);
        });
      }
      this.$refs.table1.$refs.pageTable.EXECUTE_INSERT(records3);

      console.info(res);
    },

    //补充车辆信息
    async getVehicleByVin(vin,ownerCode) {
      let res = await getVehicleByVin({vin:vin,ownerCode:ownerCode});
      console.log(res);
      if(res.data){

        this.formList.map(x => {

          if ('saleDate' == x.fieldName) {
            x.initialValue = res.data.SALES_DATE==null?null:moment(res.data.SALES_DATE).format('YYYY-MM-DD'); //销售日期
          }
          if ('repairBeginDate' == x.fieldName) {
            x.initialValue = res.data.WRT_BEGIN_DATE==null?null:moment(res.data.WRT_BEGIN_DATE).format('YYYY-MM-DD'); //保修起始日期
          }
          if ('repairEndDate' == x.fieldName) {
            x.initialValue = res.data.WRT_END_DATE==null?null:moment(res.data.WRT_END_DATE).format('YYYY-MM-DD'); //保修起始日期
          }
          if ('engineNo' == x.fieldName) {
            x.initialValue = res.data.ENGINE_NO;
          }
          if ('motorNo' == x.fieldName) {
            x.initialValue = res.data.MOTOR_NO1;
          }
          if ('gearbox' == x.fieldName) {
            x.initialValue = res.data.GEAR_BOX;
          }
          if ('customerPhone' == x.fieldName) {
            x.initialValue = res.data.MOBILE;
          }
          // 车辆用途
          if ('useType' == x.fieldName) {
            x.initialValue = res.data.VEHICLE_PURPOSE;
          }
          // 车主地址
          if ('address' == x.fieldName) {
            x.initialValue = res.data.ADDRESS;
          }
          //营运性质
          if ('customerType' == x.fieldName) {
            x.initialValue = res.data.BUSINESS_KIND;
          }
          if ('batteryNo' == x.fieldName) {
            x.initialValue = res.data.BATTERY_NO;
          }
        });
      }
    },
    async getOutInfo(outId) {
      debugger;
      let res = await getRescueList({outId: outId,current: 1,currentPage: 1,page: 1,pageNum: 1,pageSize: 10,size: 10}); // 救援单
      this.paraCode = null;

      let records = res.data.records[0];
      this.outformList.find(x => x.fieldName == 'outMile').initialValue = records.outMile;
      this.outformList.find(x => x.fieldName == 'outPerson').initialValue = records.outPerson;
      this.outformList.find(x => x.fieldName == 'isFar').initialValue = records.isFar;
      this.outformList.find(x => x.fieldName == 'outLine').initialValue = records.outLine;
      this.outformList.find(x => x.fieldName == 'bDate|eDate').initialValue[0] = records.bDate;
      this.outformList.find(x => x.fieldName == 'bDate|eDate').initialValue[1] = records.eDate;

      for (let i in records) {
        this.outAmountformList.map(y => {
          if (i == y.fieldName) {
            if(y.fieldName!='rewardType'){
              records[i]=records[i]==null?0:records[i];
              y.initialValue = parseFloat(records[i]).toFixed(2);
            }else{
              y.initialValue = records[i];
            }
          }
        });
      }
      this.feiyongformList.find(x => x.fieldName == 'helpAmount').initialValue = parseFloat(records.allAmount).toFixed(2);
    },
    sumAmount() {
      let sum = 0;
      this.$refs.table3.$refs.pageTable.list.map(x => {
        sum += Number(x.addAmount);
      });

      this.$refs.table.$refs.pageTable.list.map(x => {
        sum += Number(x.cmsClaimAmount);
      });

      this.$refs.table1.$refs.pageTable.list.map(x => {
        sum += Number(x.cmsClaimPrice);
      });
      sum += this.feiyongformList.find(x => x.fieldName == 'helpAmount').initialValue;
      this.feiyongformList.map(x => {
        if ('sumAmount' == x.fieldName) {
          x.initialValue = sum;
        }
      });
    },
    async chuqi() {
      console.log('进来了');
      const res1 = await cmsClaimTypeStr({ type: 5510 });
      if (res1.resultCode == 200) {
        this.formList1.find(x => x.fieldName == 'cmsClaimType').itemList = res1.data.map(y => ({ text: y.codeCnDesc, value: y.codeId }));
      }
    },
    formChangeHandle(val) {
      this.saveData1 = val;
    },
    formChangeHandleSp(val) {
      this.saveData4 = val;
    },
    formChangeHandle2(val) {
      console.log(val);
      this.saveData3 = val;
    },
    //保存
    async saveDialog() {
      this.$refs.formPanel1.SUBMIT_FORM();
      this.$refs.formPanel2.SUBMIT_FORM();
      this.$refs.formPanel3.SUBMIT_FORM();
      let arr = [];
      this.$refs.table3.$refs.pageTable.list.map(x => {
        arr.push(x);
      });
      console.log(arr);

      let arr1 = [];
      this.$refs.table2.$refs.pageTable.list.map(x => {
        arr1.push(x);
      });
      console.log(arr1);

      let arr2 = [];
      this.$refs.table1.$refs.pageTable.list.map(x => {
        arr2.push(x);
      });
      console.log(arr2);

      let arr3 = [];
      this.$refs.table.$refs.pageTable.list.map(x => {
        arr3.push(x);
      });
      console.log(arr3);
      //维修项目
      this.saveData.labourList = arr3;
      //换上件
      this.saveData.partRpList = arr2;
      //换下件
      this.saveData.partList = arr1;
      //附加项目
      this.saveData.addList = arr;

      this.saveData = Object.assign(this.saveData, this.saveData1);
      this.saveData = Object.assign(this.saveData, this.saveData4);
      this.saveData = Object.assign(this.saveData, this.saveData3);
      //判断是保存还是提交 默认0 提交1
      if (this.saveFlag == 1) {
        this.saveData.claimStatus = 55131002;
      } else {
        this.saveData.claimStatus = 55131001;
      }
      //保存前格式化时间类型
      //销售日期
      this.saveData.saleDate = moment(this.saveData.saleDate).format('YYYY-MM-DD HH:mm:ss');
      //保修起始日期
      this.saveData.repairBeginDate = moment(this.saveData.repairBeginDate).format('YYYY-MM-DD HH:mm:ss');
      //维修开始时间
      this.saveData.serviceBeginDate = moment(this.saveData.serviceBeginDate).format('YYYY-MM-DD HH:mm:ss');
      //维修结束时间
      this.saveData.serviceEndDate = moment(this.saveData.serviceEndDate).format('YYYY-MM-DD HH:mm:ss');
      //自费备件销售日期
      // this.saveData.selfSdate = moment(this.saveData.selfSdate).format('YYYY-MM-DD HH:mm:ss');
      //生产日期
      this.saveData.prodDate = moment(this.saveData.prodDate).format('YYYY-MM-DD HH:mm:ss');
      this.saveData.claimId = this.rowData.claimId;
      this.saveData.partId = this.partId;
      this.saveData.supId = this.supId;
      this.saveData.supCode = this.supCode;
      this.saveData.labourAmount = this.labourAmount;
      this.saveData.partAmount = this.partAmount;
      this.saveData.modelCode = this.modelCode;
      this.saveData.modelId = this.modelId;
      this.saveData.seriesCode = this.seriesCode;
      this.saveData.seriesId = this.seriesId;
      this.saveData.faId = this.faId; //故障现象主键
      this.saveData.frId = this.frId; //故障原因主键
      this.saveData.outId = this.outId;
      this.saveData.isDeleted = this.isDeleted;
      this.saveData.outCode = this.outCode;
      this.saveData.applyAt = this.applyAt;
      this.saveData.claimNo = this.claimNo;
      this.saveData.claimStatus = this.claimStatus;

      let res = await editSave(this.saveData);

      if (res.resultCode === 200) {
        this.$emit('save');
        return this.$notify.success({ title: '提示信息', message: '保存成功' });
      } else {
        this.closeDialog();
        this.$notify.error({ title: '提示信息', message: res.errMsg || '保存失败!' });
      }
    },
    delsFun(data) {
      this.$refs.table.$refs.pageTable.EXECUTE_DELETE([data]);
      this.feiyongformList.map(x => {
        if ('labourAmount' == x.fieldName) {
          x.initialValue = this.sumweixiufeiyongz - Number(data.cmsClaimAmount);
          this.sumAmount();
        }
      });
    },
    delsFunSj(data) {
      this.$refs.table1.$refs.pageTable.EXECUTE_DELETE([data]);
      this.feiyongformList.map(x => {
        if ('partAmount' == x.fieldName) {
          x.initialValue = this.partAmountsumz - Number(data.cmsClaimPrice);
          this.sumAmount();
        }
      });
    },
    delsFunXj(data) {
      this.$refs.table2.$refs.pageTable.EXECUTE_DELETE([data]);
    },
    delsFunFj(data) {
      this.$refs.table3.$refs.pageTable.EXECUTE_DELETE([data]);
      this.feiyongformList.map(x => {
        if ('addAmount' == x.fieldName) {
          x.initialValue = this.sumfujiafeiyongz - Number(data.addAmount);
          this.sumAmount();
        }
      });
    },
    //责任商选择
    selectResponsibleCode() {
      this.responsibleAdd = true;
    },
    responsibleSave(obj) {
      this.formList1.find(x => x.fieldName == 'responsiblePerson').initialValue = obj[0].responsiblePerson;
      this.responsibleCode = obj[0].responsibleCode;
      this.responsibleId = obj[0].responsibleId;
      this.responsiblePerson = obj[0].responsiblePerson;
      this.fetchParams = { ...this.fetchParams };
      this.responsibleAdd = false;
    },
    responsibleClose(){
      this.responsibleAdd = false;
    },
    saveFile(obj) {
      let list = this.$refs.table3.$refs.pageTable.list;
      list.find(x => x.addCode == obj.addCode).addFiles = obj.length == 0 ? [] : obj;
      this.upVisible = false;
    },
    editFile(row) {
      this.upVisible = true;
      this.uploadDate = row;
      this.uploadDate.claimId = this.rowData.claimId;
    },
    //搜索获取数据
    changeHandle(val) {
      this.fetchParams = val;
      console.log(val);
    },
    //选中
    selectChange(rows) {
      this.selectedRows = rows;
      console.log(this.selectedRows);
    },
    //维修项目列表新增
    weixiuxiangmulistadd() {
      this.weixiuxiangmulistaddflag = true;
    },
    //备件换上件列表
    peijianhuanshangjianadd() {
      this.peijianhuanshangjianlistaddflag = true;
    },
    peijianhuanshangjianlistadd() {
      this.peijianhuanshangjianlistaddflag = true;
    },
    //旧件列表列表
    peijianhuanxiajianadd() {
      this.peijianhuanxiajianlistaddflag = true;
    },
    //附加项目列表
    fujiaxiangmuadd() {
      this.fujiaxiangmulistaddflag = true;
    },
    //维修工单
    weixiugongdanClose() {
      this.remarkFlag = false;
    },
    //救援单号
    jiuyuandanhaoClose() {
      this.jiuyuandanhao = false;
    },
    jiuyuandanhaoSave(obj) {
      this.formList1.find(x => x.fieldName == 'outNo').initialValue = obj[0].outCode;
      this.outId = obj[0].outId;
      this.jiuyuandanhao = false;
    },
    //主损件
    zhusunjianClose() {
      this.zhusunjian = false;
    },
    //故障现象
    guzhangxianxiangdaimanClose() {
      this.guzhangxianxiangdaima = false;
    },
    guzhangxianxiangdaimaSave(obj) {
      this.formList1.find(x => x.fieldName == 'sysCode1').initialValue = obj[0].sysCode1;
      this.formList1.find(x => x.fieldName == 'sysName1').initialValue = obj[0].sysName1;
      this.formList1.find(x => x.fieldName == 'sysCode2').initialValue = obj[0].sysCode2;
      this.formList1.find(x => x.fieldName == 'sysName2').initialValue = obj[0].sysName2;
      this.formList1.find(x => x.fieldName == 'sysCode3').initialValue = obj[0].sysCode3;
      this.formList1.find(x => x.fieldName == 'sysName3').initialValue = obj[0].sysName3;
      this.formList1.find(x => x.fieldName == 'sysCode4').initialValue = obj[0].sysCode4;
      this.formList1.find(x => x.fieldName == 'sysName4').initialValue = obj[0].sysName4;
      this.formList1.find(x => x.fieldName == 'faultCode').initialValue = obj[0].faultCode;
      this.formList1.find(x => x.fieldName == 'faultName').initialValue = obj[0].faultName;
      this.faultId = obj[0].faultId;
      this.guzhangxianxiangdaima = false;
    },
    //故障原因
    guzhangyuanyinClose() {
      this.guzhangyuanyin = false;
    },
    guzhangyuanyinSave(obj) {
      this.formList1.find(x => x.fieldName == 'frCode').initialValue = obj[0].frCode;
      this.formList1.find(x => x.fieldName == 'frName').initialValue = obj[0].frName;
      this.frId = obj[0].frId;
      this.guzhangyuanyin = false;
    },
    //自费工单
    zifeigongdanClose() {
      this.zifeigongdan = false;
    },
    zifeigongdanSave(obj) {
      this.formList1.find(x => x.fieldName == 'selfNo').initialValue = obj[0].selfNo;
      this.formList1.find(x => x.fieldName == 'selfSdate').initialValue = obj[0].selfSdate;
      this.formList1.find(x => x.fieldName == 'selfMile').initialValue = obj[0].selfMile;
      this.formList1.find(x => x.fieldName == 'selfUseHours').initialValue = obj[0].selfUseHours;
      this.formList1.find(x => x.fieldName == 'selfUseMile').initialValue = obj[0].selfUseMile;
      this.zifeigongdan = false;
    },
    //维修项目
    weixiuxiangmulistClose() {
      this.weixiuxiangmulistaddflag = false;
    },
    weixiuxiangmulistSave(val) {
      let data = {};
      data.cmsClaimAmount = val[val.length - 1].cmsClaimAmount;
      data.cmsClaimPrice = val[val.length - 1].cmsClaimPrice;
      data.cmsClaimType = val[val.length - 1].cmsClaimType;
      data.labourCode = val[val.length - 1].labourCode;
      data.labourHours = val[val.length - 1].labourHours;
      data.labourName = val[val.length - 1].labourName;
      this.$refs.table.$refs.pageTable.EXECUTE_INSERT(data);
      let sumweixiufeiyong = 0;
      this.$refs.table.$refs.pageTable.list.map(x => {
        sumweixiufeiyong += Number(x.cmsClaimAmount);
      });
      this.feiyongformList.map(x => {
        if ('labourAmount' == x.fieldName) {
          x.initialValue = Number(sumweixiufeiyong);
        }
      });
      this.sumweixiufeiyongz = sumweixiufeiyong;
      this.sumAmount();
      this.weixiuxiangmulistaddflag = false;
    },
    //备件换上件
    peijianhuanshangjianClose() {
      this.peijianhuanshangjianlistaddflag = false;
    },
    fujiaxiangmuCloseSave() {
      this.fujiaxiangmuCloselistaddflag = false;
      this.fetchParams = { ...this.fetchParams };
    },
    //附加项目
    fujiaxiangmuClose() {
      this.fujiaxiangmulistaddflag = false;
    },
    fujiaxiangmuSave(val) {
      let data = {};
      data.addCode = val[val.length - 1].addCode;
      data.addName = val[val.length - 1].addName;
      data.addAmount = val[val.length - 1].addAmount;
      data.remarks = val[val.length - 1].remarks;
      this.$refs.table3.$refs.pageTable.EXECUTE_INSERT(data);

      let sumfujiafeiyong = 0;
      this.$refs.table3.$refs.pageTable.list.map(x => {
        sumfujiafeiyong += Number(x.addAmount);
      });
      this.feiyongformList.map(x => {
        if ('addAmount' == x.fieldName) {
          x.initialValue = Number(sumfujiafeiyong);
        }
      });
      this.sumfujiafeiyongz = sumfujiafeiyong;
      this.sumAmount();
      this.fujiaxiangmulistaddflag = false;
    },

    //备件换上件
    fujiaxiangmuCloseClose() {
      this.fujiaxiangmuCloselistaddflag = false;
    },
    peijianhuanshangjianSave(val) {
      let data = {};
      data.partCode = val[val.length - 1].partCode;
      data.partName = val[val.length - 1].partName;
      data.partUnit = val[val.length - 1].partUnit;
      data.partCount = val[val.length - 1].partCount;
      data.cmsClaimPrice = val[val.length - 1].cmsClaimPrice;
      data.cmsClaimAmount = val[val.length - 1].cmsClaimAmount;
      // data.ifEv = val[val.length - 1].ifEv;
      // data.evNo = val[val.length - 1].evNo;
      this.$refs.table1.$refs.pageTable.EXECUTE_INSERT(data);
      let partAmountsum = 0;
      this.$refs.table1.$refs.pageTable.list.map(x => {
        this.sumAmountsum += Number(x.cmsClaimPrice);
        partAmountsum += Number(x.cmsClaimPrice);
      });
      this.feiyongformList.map(x => {
        if ('partAmount' == x.fieldName) {
          x.initialValue = partAmountsum;
        }
      });
      this.partAmountsumz = partAmountsum;
      this.sumAmount();
      this.peijianhuanshangjianlistaddflag = false;
    },
    //旧件列表
    peijianhuanxiajianClose() {
      this.peijianhuanxiajianlistaddflag = false;
    },
    peijianhuanxiajianSave(val) {
      this.$refs.table2.$refs.pageTable.EXECUTE_DELETE(this.$refs.table2.$refs.pageTable.list);
      this.$refs.table2.$refs.pageTable.EXECUTE_INSERT(val);
      this.peijianhuanxiajianlistaddflag = false;
    },
    //取消操作
    closeDialog() {
      this.$emit('close', { visible: false, data: this.selectedRows, type: 'close' });
    },
    chooseOrderNo() {
      this.visible = true;
    }, //维修工单号选择
    selectRono() {
      this.remarkFlag = true;
    },
    selectpartCode() {
      this.zhusunjian = true;
    },
    async selectYsqCode() {
      if (this.authNo) {
          let res = await getListByPage({appId: getAppId(),authNo: this.formList1.find(x => x.fieldName == 'authNo').initialValue,current:1,currentPage:1,limit:20,pageNum:1,pageSize:20,size:20});
          this.rowData1.authId = res.data.records[0].authId;
          this.rowData1.vin = res.data.records[0].vin;
          this.rowData1.ownerCode = res.data.records[0].ownerCode;
          this.yushouquan = true;
      } else {
        this.$notify.error({ title: '提示信息', message: '请选择预授权单号' });
      }
    },
    selectfaultCode() {
      this.guzhangxianxiangdaima = true;
    },
    selectfaultReason() {
      this.guzhangyuanyin = true;
    },
    selectOutNo() {
      this.jiuyuandanhao = true;
    },
    selectselfNo() {
      this.zifeigongdan = true;
    },
    yushouquanClose() {
      this.yushouquan = false;
    },
    yushouquanSave(obj) {
      this.formList1.find(x => x.fieldName == 'authNo').initialValue = obj[0].authNo;
      this.yushouquan = false;
    },
    add() {},
    weixiugongdanSave(obj) {
      this.formListbeizhu.find(x => x.fieldName == 'checkRemarks').initialValue = obj[0].reasonRemarks;
      this.remarkFlag = false;
    },
    zhusunjianSave(obj) {
      this.formList1.find(x => x.fieldName == 'partCode').initialValue = obj[0].partCode;
      this.formList1.find(x => x.fieldName == 'partName').initialValue = obj[0].partName;
      this.partId = obj[0].partId;
      this.zhusunjian = false;
    },
    async submit() {
      // this.saveDialog();
      this.formListbeizhu.find(x => x.fieldName === 'checkRemarks').rules = [{ required: true, message: '请输入审核说明', trigger: 'change' }];
      if (this.formListbeizhu.find(x => x.fieldName === 'checkRemarks').initialValue) {
        this.$refs.formPanelbeizhu.SUBMIT_FORM();
        this.saveData5.claimId = this.rowData.claimId;
        this.saveData.responsibleId = this.responsibleId;
        this.saveData.responsibleCode = this.responsibleCode;
        this.saveData.responsiblePerson = this.responsiblePerson;
        this.loading = true;
        const res = await zuofeiFun(this.saveData5);
        if (res.resultCode === 200) {
          this.closeDialog('refresh');
          return this.$notify.success({ title: '提示信息', message: '保存成功' });
          this.$emit('save');
        } else {
          this.loading = false;
          // this.$notify.error({ title: '提示信息', message: res.errMsg || '保存失败!' });
          // this.closeDialog();
        }
      } else {
        this.$notify.error({ title: '提示信息', message: '保存失败,请检查数据格式和必填项!' });
      }
    },
    async detail() {
      if (this.outNo) {
        this.formData.outNo = this.outNo;
        this.formData.ownerCode = this.ownerCode;
        console.log(this.formData,"this.formDatathis.formDatathis.formData")
        const res = await getResultList({ outNo: this.outNo, ownerCode: this.ownerCode });
        let val = res.data.rows[0];
        this.formData = val;

        this.actions = { type: 'edit', visible: true, title: '外出救援' };
      } else {
        this.$notify.error({ title: '提示信息', message: '请选择救援单号' });
      }
    },

    close() {
      // 关闭
      this.actions.visible = false;
    },
    createFormList() {
      return [
        {
          type: 'INPUT',
          label: '索赔单号',
          fieldName: 'claimNo',
          placeholder: '请输入标题名称...',
          disabled: true
        },
        {
          type: 'INPUT',
          label: '服务中心代码',
          fieldName: 'dealerCode',
          placeholder: '请输入标题名称...',
          disabled: true
        },
        {
          type: 'INPUT',
          label: '服务中心名称',
          fieldName: 'dealerName',
          placeholder: '请输入标题名称...',
          disabled: true
        },
        {
          type: 'INPUT',
          label: '维修工单号',
          fieldName: 'roNo',
          placeholder: '请输入维修工单号...',
          readonly: true,
          disabled: true
        },
        {
          type: 'SELECT',
          label: '索赔单状态',
          fieldName: 'claimStatus',
          disabled: true, // 只读
          hidden: true,
          itemList: this.createDictList('5513')
        },
        {
          type: 'INPUT',
          label: 'VIN',
          fieldName: 'vin',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '车牌号',
          fieldName: 'licenseNo',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '发动机号',
          fieldName: 'engineNo',
          disabled: true,
          placeholder: '请输入发动机号...'
        },
        {
          type: 'INPUT',
          label: '变速箱号',
          fieldName: 'gearbox',
          disabled: true,
          placeholder: '请输入变速箱号...'
        },
        {
          type: 'INPUT',
          label: '电机号',
          fieldName: 'motorNo',
          disabled: true,
          placeholder: '请输入电机号...'
        },
        {
          type: 'SELECT',
          label: '营运类型',
          fieldName: 'customerType',
          disabled: true,
          initialValue: undefined,
          itemList: this.createDictList('2114')
        },
        {
          type: 'SELECT',
          label: '车辆用途',
          style: { minWidth: '200px' },
          disabled: true,
          fieldName: 'useType',
          itemList: this.createDictList('2115')
        },
        {
          type: 'INPUT',
          label: '车系名称',
          fieldName: 'seriesName',
          placeholder: '请输入车系名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '车型名称',
          fieldName: 'modelName',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '销售日期',
          fieldName: 'saleDate',
          placeholder: '请输入标题名称...',
          // hidden:true,
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '保修起始日期',
          fieldName: 'repairBeginDate',
          placeholder: '请输入标题名称...',
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '保修结束日期',
          fieldName: 'repairEndDate',
          placeholder: '请输入标题名称...',
          hidden: true,
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'DATE',
          label: '维修开始时间',
          fieldName: 'serviceBeginDate',
          placeholder: '请输入标题名称...',
          // valueFormat:'yyyy-MM-DD HH:mm:ss',
          hidden:true,
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'DATE',
          label: '维修结束时间',
          fieldName: 'serviceEndDate',
          placeholder: '请输入标题名称...',
          // valueFormat:'yyyy-MM-DD HH:mm:ss',
          hidden:true,
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '生产日期',
          fieldName: 'prodDate',
          placeholder: '请输入标题名称...',
          hidden:true,
          readonly: true, // 只读
          disabled: true
        },

        {
          type: 'INPUT',
          label: '车主姓名',
          fieldName: 'customerName',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '车主手机号',
          fieldName: 'customerPhone',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '送修人姓名',
          fieldName: 'deliverer',
          disabled: true,
          placeholder: '请输入送修人姓名...'
        },
        {
          type: 'INPUT',
          label: '送修人手机号',
          fieldName: 'delivererMobile',
          disabled: true,
          placeholder: '请输入送修人手机号...'
        },
        {
          type: 'INPUT',
          label: '购件开始里程',
          fieldName: 'partMile',
          placeholder: '请输入标题名称...',
          hidden: true,
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '购件日期',
          fieldName: 'partDate',
          placeholder: '请输入标题名称...',
          hidden: true,
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '累计行驶里程',
          fieldName: 'driveMile',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '仪表里程',
          fieldName: 'meterMile',
          placeholder: '请输入标题名称...',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'SELECT',
          label: '是否更换电池',
          fieldName: 'isChangeBattery',
          placeholder: '请选择',
          readonly: true,
          disabled: true,
          initialValue: '',
          itemList: this.createDictList('1004')
        },
        {
          type: 'INPUT',
          label: '电池编号',
          fieldName: 'batteryNo',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入电池编号...', trigger: 'blur' }],
          placeholder: '请输入电池编号...'
        },
        {
          type: 'INPUT',
          label: '新电池编号',
          fieldName: 'newBatteryNo',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入电池编号...', trigger: 'blur' }],
          placeholder: '请输入电池编号...'
        },
        {
          type: 'INPUT',
          label: '提报人',
          fieldName: 'applyName',
          placeholder: '提报人',
          disabled: true
        },
        {
          type: 'INPUT',
          label: '提报人手机号',
          fieldName: 'applyPhone',
          placeholder: '提报人手机号',
          readonly: true,
          disabled: true
        },
        {
          type: 'INPUT',
          label: '车主地址',
          fieldName: 'address',
          placeholder: '车主地址...',
          readonly: true,
          disabled: true,
          selfCols: 2
        },
        {
          type: 'SELECT',
          label: '是否特殊车辆',
          fieldName: 'isSpecial',
          hidden:true,
          readonly: true,
          disabled: true,
          itemList: this.createDictList('5532')
        }
      ];
    },
    formList1Fn() {
      return [
        {
          type: 'SELECT',
          label: '索赔类型',
          fieldName: 'cmsClaimType',
          placeholder: '请选择',
          initialValue: '',
          itemList: [],
          readonly: true,
          disabled: true,

        },
        {
          type: 'INPUT',
          label: '预授权单号',
          fieldName: 'authNo',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入预授权单号', trigger: 'change' }],
          placeholder: '请输入...',
          unitRender: p => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.selectYsqCode()} />
              </div>
            );
          }
        },
        {
          type: 'INPUT',
          label: '服务活动编号',
          fieldName: 'batchCode',
          placeholder: '请输入服务活动编号...',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入服务活动编号', trigger: 'blur' }],
          unitRender: p => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.batchActivitiesShow()} />
              </div>
            );
          }
        },
        {
          type: 'INPUT',
          label: '服务活动名称',
          fieldName: 'batchName',
          placeholder: '请输入服务活动名称...',
          disabled: true
        },
        {
          type: 'INPUT',
          label: '主损件代码',
          fieldName: 'partCode',
          readonly: true,
          disabled: true,
          hidden: true,
          placeholder: '请选择主损件...',
          rules: [{ required: false, message: '请选择主损件...', trigger: 'blur' }],
          unitRender: p => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.selectpartCode()} />
              </div>
            );
          }
        },
        {
          type: 'INPUT',
          label: '主损件名称',
          fieldName: 'partName',
          disabled: true,
          hidden: true,
          placeholder: '请输入主损件名称...'
        },
        {
          type: 'INPUT',
          label: '超保里程',
          fieldName: 'overMile',
          disabled: true,
          initialValue: 0,
          placeholder: '请输入...'
        },
        {
          type: 'INPUT',
          label: '超保天数',
          fieldName: 'overDays',
          disabled: true,
          initialValue: 0,
          placeholder: '请输入...'
        },
        {
          type: 'INPUT',
          label: '供应商代码',
          fieldName: 'supCode',
          placeholder: '请选择供应商',
          disabled: true,
          hidden: true,
          rules: [{ required: false, message: '请选择供应商', trigger: 'blur' }],
          unitRender: (p) => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.selectSuppliersCode()} />
              </div>
            );
          },
        },
        {
          type: 'INPUT',
          label: '供应商名称',
          fieldName: 'supName',
          disabled: true,
          hidden: true,
          placeholder: '请输入...'
        },
        { type: 'INPUT',
          label: '责任商代码',
          fieldName: 'responsibleCode',
          disabled: true,
          placeholder: '请选择责任商...',
          rules: [{ required: false, message: '请选择责任商', trigger: 'blur' }],
          unitRender: p => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.selectResponsibleCode()} />
              </div>
            );
          }
        },
        {
          type: 'INPUT',
          label: '责任商名称',
          fieldName: 'responsiblePerson',
          disabled: true,
          hidden: true,
          placeholder: '请输入...'
        },
        {
          type: 'INPUT',
          label: '故障现象',
          fieldName: 'sysName4',
          readonly: true,
          disabled: true,
          placeholder: '请选择故障现象...'
        },
        {
          type: 'INPUT',
          label: '故障原因',
          fieldName: 'frName',
          readonly: true,
          disabled: true,
          placeholder: '请选择故障原因...'
        },
        {
          type: 'INPUT',
          label: '质量报告单号',
          fieldName: 'reportNo',
          placeholder: '请输入质量报告单号...',
          initialValue: undefined,
          hidden: true,
          readonly: true,
          disabled: true,
          unitRender: p => {
            return (
              <div>
                <multiuse-button icon="el-icon-search" onClick={() => this.selectReportNo()} />
              </div>
            );
          }
        },
        {
          type: 'INPUT',
          label: '救援单号',
          fieldName: 'outNo',
          placeholder: '请输入救援单号...',
          initialValue: undefined,
          readonly: true,
          disabled: true,
          // unitRender: p => {
          //   return (
          //     <div>
          //       <multiuse-button icon="el-icon-search" onClick={() => this.selectOutNo()} />
          //       <multiuse-button type="primary" icon="el-icon-document" onClick={() => this.detail()}/>
          //     </div>
          //   );
          // }
        },

        {
          type: 'INPUT',
          label: '自费工单号',
          fieldName: 'selfNo',
          placeholder: '请输入自费工单号...',
          readonly: true,
          disabled: true,
          hidden: true,
          rules: [{ required: false, message: '请输入自费工单号', trigger: 'change' }],
          // unitRender: p => {
          //   return (
          //     <div>
          //       <multiuse-button icon="el-icon-search" onClick={() => this.selectselfNo()} />
          //     </div>
          //   );
          // }
        },
        {
          type: 'INPUT',
          label: '购件日期',
          fieldName: 'selfSdate',
          valueFormat:'yyyy-MM-DD',
          placeholder: '请输入...',
          initialValue: undefined,
          hidden: true,
          disabled: true
          // rules: [{ required: true, message: '请输入自费备件销售日期', trigger: 'change' }],
        },
        {
          type: 'INPUT',
          label: '自费备件行驶里程',
          fieldName: 'selfUseMile',
          placeholder: '请输入...',
          initialValue: undefined,
          hidden: true,
          disabled: true
          // rules: [{ required: true, message: '请输入维修方案', trigger: 'change' }],
        },
        {
          type: 'INPUT',
          label: '自费备件使用时长(天)',
          fieldName: 'selfUseHours',
          placeholder: '请输入...',
          initialValue: undefined,
          hidden: true,
          disabled: true
          // rules: [{ required: true, message: '请输入自费备件使用时长', trigger: 'change' }],
        },
        {
          type: 'INPUT',
          label: '购件开始里程',
          fieldName: 'selfMile',
          placeholder: '请输入...',
          initialValue: undefined,
          hidden: true,
          disabled: true
          // rules: [{ required: true, message: '请输入自费备件使用里程', trigger: 'change' }],
        },
        {
          type: 'TEXT_AREA',
          label: '故障现象描述',
          fieldName: 'faultAppear',
          placeholder: '故障现象',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入故障现象', trigger: 'change' }],
          rows: 3,
          selfCols: 4 // 元素占据几行
        },
        {
          type: 'TEXT_AREA',
          label: '故障原因描述',
          fieldName: 'faultReason',
          placeholder: '故障原因',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入故障原因', trigger: 'change' }],
          rows: 3,
          selfCols: 4 // 元素占据几行
        },
        {
          type: 'TEXT_AREA',
          label: '维修方案描述',
          fieldName: 'cmsClaimPgm',
          placeholder: '维修方案',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请输入维修方案', trigger: 'change' }],
          rows: 3,
          selfCols: 4 // 元素占据几行
        },
        {
          type: 'TEXT_AREA',
          label: '处理结果描述',
          fieldName: 'handleResult',
          placeholder: '处理结果',
          readonly: true,
          disabled: true,
          rows: 3,
          selfCols: 4 // 元素占据几行
        },
        {
          type: 'TEXT_AREA',
          label: '备注',
          fieldName: 'remark',
          placeholder: '备注',
          readonly: true,
          disabled: true,
          rules: [{ required: false, message: '请选择备注', trigger: 'change' }],
          rows: 3,
          selfCols: 4 // 元素占据几行
        },
        {
          type: 'BREAK_SPACE',
          label: '附件'
        },
        {
          type: 'UPLOAD_IMG',
          label: 'VIN',
          fieldName: 'wayPicture',
          placeholder: '上传身份证...',
          selfCols: 1,
          initialValue: [],
          disabled: true,
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        },
        {
          type: 'UPLOAD_IMG',
          label: '里程（仪表）',
          fieldName: 'wayPicture1',
          placeholder: '上传身份证...',
          selfCols: 1,
          initialValue: [],
          disabled: true,
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        },
        {
          type: 'UPLOAD_IMG',
          label: '车牌（车头）',
          fieldName: 'wayPicture2',
          placeholder: '上传身份证...',
          selfCols: 2,
          initialValue: [],
          disabled: true,
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        },
        {
          type: 'UPLOAD_IMG',
          label: '行驶证',
          disabled: true,
          fieldName: 'wayPicture3',
          placeholder: '上传身份证...',
          selfCols: 1,
          initialValue: [],
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        },
        {
          type: 'UPLOAD_IMG',
          label: '故障照片',
          fieldName: 'wayPicture4',
          placeholder: '上传身份证...',
          initialValue: [],
          selfCols: 1,
          disabled: true,
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        },
        {
          type: 'UPLOAD_IMG',
          label: '故障照片',
          fieldName: 'wayPicture5',
          placeholder: '上传身份证...',
          selfCols: 1,
          initialValue: [],
          disabled: true,
          upload: {
            actionUrl: '/api/file/oss/upload',
            fixedSize: [5, 3],
            limit: 1,
            isCalcHeight: true
          }
        }
      ];
    },
    createdTable() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 70,
          fixed: 'left',
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        // {
        //   title: '操作',
        //   dataIndex: 'column-action',
        //   width: 90,
        //   render: (props, h) => {
        //     return (
        //       <div>
        //         <el-button size="mini" type="text" onClick={() => this.video(props.row)}>
        //           预览
        //         </el-button>
        //       </div>
        //     );
        //   }
        // },
        {
          title: '附件标题',
          dataIndex: 'title',
          showOverflowTooltip: true,
          render: p => {
            return (
              // <a style="color:#bb0a30" href={p.row.fileUrl} target="_blank" download={p.row.title}>
              //   {p.row.title}
              // </a>
              <div>
                <el-button style="color:#bb0a30" size="mini" type="text" onClick={() => this.downloadFile(p.row.fileUrl)}>
                  {p.row.title}
                </el-button>
              </div>
            );
          }
        },
        {
          title: '上传日期',
          dataIndex: 'createdAt'
        }
      ];
    },
    //维修项目
    creatHeader() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 80,
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        {
          title: '主工位', dataIndex: 'isMain', sorter: true, align: 'center',
          render: (props) => {
            return <el-radio v-model={this.radioIndex} disabled="true" label={props.row.index}></el-radio>
          }
        },
        { title: '维修项目代码', dataIndex: 'labourCode', sorter: true },
        { title: '维修项目名称', dataIndex: 'labourName', sorter: true },
        { title: '维修类型', dataIndex: 'repairTypeName', sorter: true },
        { title: '索赔工时', dataIndex: 'labourHours', sorter: true },
        { title: '索赔工时单价', dataIndex: 'cmsClaimPrice', sorter: true },
        { title: '索赔金额', dataIndex: 'cmsClaimAmount', sorter: true }
      ];
    },
    //table表头和数据源
    creatHeader1() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 80,
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        { title: '备件代码', dataIndex: 'partCode', sorter: true },
        { title: '备件名称', dataIndex: 'partName', sorter: true },
        { title: '单位', dataIndex: 'partUnit', sorter: true },
        { title: '数量', dataIndex: 'partCount', sorter: true },
        { title: '索赔单价', dataIndex: 'cmsClaimPrice', sorter: true },
        { title: '索赔金额', dataIndex: 'cmsClaimAmount', sorter: true },
        { title: '是否特批', dataIndex: 'isSpecially',hidden:true, sorter: true },
        { title: '是否特批', dataIndex: 'isSpeciallyStr', sorter: true },
      ];
    },
    //换下件
    columnshuanxiajianFn() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 80,
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        {
          title: '主因件', dataIndex: 'isMain', sorter: true, align: 'center',
          render: (props) => {
            return <el-radio v-model={this.radioPartIndex} disabled="true"  label={props.row.index}></el-radio>
          }
        },
        { title: '备件代码', dataIndex: 'partCode', sorter: true },
        { title: '备件名称', dataIndex: 'partName', sorter: true },
        { title: '变更前备件代码', dataIndex: 'partCodeBefore', sorter: true },
        { title: '变更前备件名称', dataIndex: 'partNameBefore', sorter: true },
        { title: '单位', dataIndex: 'partUnit', sorter: true },
        { title: '数量', dataIndex: 'partCount', sorter: true },
        { title: '单价', dataIndex: 'cmsClaimPrice', sorter: true },
        { title: '金额', dataIndex: 'cmsClaimAmount', sorter: true },
        // {
        //   title: '是否免返',
        //   dataIndex: 'notReturn',
        //   hidden: true,
        //   sorter: true,
        //   editable: true,
        //   render: props => {
        //     let val = props.row.notReturn === 10041001 ? true : false;
        //     return <el-checkbox value={val} disabled={true}></el-checkbox>;
        //   }
        // },
        // { title: '免返原因', dataIndex: 'notReturnReason', sorter: true ,hidden: true, minWidth: 120},
        {
          title: '备件回运类型',
          dataIndex: 'returnType',
          sorter: true,
          render: props => {
            //编码转汉字
            console.log('哈哈哈', props.row.returnType);
            return <span>{this.createDictText(props.row.returnType, '5585')}</span>;
          }
        },
        { title: '采购渠道代码', dataIndex: 'channelCode', sorter: true  },
        { title: '供应商代码', dataIndex: 'supplierCode',hidden: true, sorter: true  },
        { title: '供应商', dataIndex: 'supplierName', hidden: true,sorter: true  }
      ];
    },
    //附加项目
    columnsfujiaxiangmuFn() {
      return [
        {
          title: '序号',
          dataIndex: 'index',
          width: 80,
          sorter: true,
          render: props => {
            return <span>{props.row.index + 1}</span>;
          }
        },
        // {
        //   title: '操作',
        //   dataIndex: 'column-action',
        //   width: 80,
        //   render: props => {
        //     return (
        //       <div style="text-align:center">
        //         <multiuse-button type="text" onClick={() => this.editFile(props.row)}>
        //           上传附件
        //         </multiuse-button>
        //       </div>
        //     );
        //   }
        // },
        { title: '附加项目代码', dataIndex: 'addCode', sorter: true },
        { title: '附加项目名称', dataIndex: 'addName', sorter: true },
        { title: '附加项目费用', dataIndex: 'addAmount', sorter: true },
        { title: '备注', dataIndex: 'remarks', sorter: true }
      ];
    },
    //费用信息
    feiyongformListFn() {
      return [
        {
          type: 'INPUT',
          label: '合计费用',
          fieldName: 'sumAmount',
          initialValue: '0.00',
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '工时费用',
          fieldName: 'labourAmount',
          initialValue: '0.00',
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '备件费用',
          fieldName: 'partAmount',
          initialValue: '0.00',
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '备件管理费用',
          fieldName: 'partManageAmount',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '附加项目费用',
          fieldName: 'addAmount',
          initialValue: '0.00',
          readonly: true, // 只读
          disabled: true
        },
        {
          type: 'INPUT',
          label: '外出救援费用',
          fieldName: 'helpAmount',
          initialValue: '0.00',
          disabled: true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: 'PDI费用',
          fieldName: 'priceAmount',
          initialValue: '',
          disabled:true,
          readonly: true // 只读
        }
      ];
    },
    //审核费用信息
    // shenhefeiyongformListFn() {
    //   return [
    //     {
    //       type: 'INPUT',
    //       label: '合计费用',
    //       fieldName: 'claimSumAmount',
    //       initialValue: '0.00',
    //       readonly: true, // 只读
    //       disabled: true
    //     },
    //     {
    //       type: 'INPUT',
    //       label: '工时费用',
    //       fieldName: 'claimLabourAmount',
    //       initialValue: '0.00',
    //       readonly: true, // 只读
    //       disabled: true
    //     },
    //     {
    //       type: 'INPUT',
    //       label: '备件费用',
    //       fieldName: 'claimPartAmount',
    //       initialValue: '0.00',
    //       readonly: true, // 只读
    //       disabled: true
    //     },
    //     {
    //       type: 'INPUT',
    //       label: '附加项目费用',
    //       fieldName: 'claimAddAmount',
    //       initialValue: '0.00',
    //       readonly: true, // 只读
    //       disabled: true
    //     },
    //     {
    //       type: 'INPUT',
    //       label: '外出救援费用',
    //       fieldName: 'helpAmount',
    //       initialValue: '0.00',
    //       disabled: true,
    //       readonly: true // 只读
    //     },
    //     // {
    //     //   type: 'BREAK_SPACE',
    //     //   label: '一口价区域',
    //     //   style: {}
    //     // },
    //     {
    //       type: 'INPUT',
    //       label: 'PDI费用',
    //       fieldName: 'priceAmount',
    //       initialValue: '',
    //       hidden:true,
    //       readonly: true // 只读
    //     }
    //   ];
    // },
    //审核备注
    formListbeizhuform() {
      return [
        {
          type: 'TEXT_AREA',
          label: '审核备注',
          fieldName: 'checkRemarks',
          placeholder: '请输入备注...',
          rules: [{ required: true, message: '请输入审核备注', trigger: 'change' }],
          maxlength: 200,
          rows: 3
        }
      ];
    },
    //外出救援信息
    outformListFn() {
      return [
        {
          type: 'INPUT',
          label: '救援双边里程',
          fieldName: 'outMile',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '人数',
          fieldName: 'outPerson',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'RANGE_DATE',
          label: '救援时间',
          fieldName: 'bDate|eDate',
          initialValue: '',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'SELECT',
          label: '是否偏远地区',
          fieldName: 'isFar',
          initialValue: '',
          itemList: this.createDictList('1004',[]),
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '外出路线',
          fieldName: 'outLine',
          initialValue: '',
          disabled:true,
          readonly: true, // 只读
          selfCols: 2 // 元素占据几行
        }
      ];
    },
    //外出救援费用
    outAmountformListFn() {
      return [
        {
          type: 'INPUT',
          label: '路程奖励',
          fieldName: 'fuelSubsidy',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '人员补贴',
          fieldName: 'prSubsidy',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '餐补',
          fieldName: 'foodSubsidy',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '住宿补贴',
          fieldName: 'staySubsidy',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '车船费',
          fieldName: 'crossAmount',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '拖车费',
          fieldName: 'trailerAmount',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '其他费用',
          fieldName: 'otherAmount',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        },
        {
          type: 'SELECT',
          label: '激励类型',
          fieldName: 'rewardType',
          initialValue: '',
          disabled:true,
          itemList: this.createDictList('5537',[]),
          readonly: true // 只读
        },
        {
          type: 'INPUT',
          label: '奖励金额',
          fieldName: 'rewardFee',
          initialValue: '0.00',
          disabled:true,
          readonly: true // 只读
        }
      ];
    },
  }
};
</script>

<style lang="less" scoped>
.claim_query_factory {
  /deep/ .el-textarea__inner {
    color: #000 !important;
  }
}
</style>
